<template>
    <div>
        <van-sticky :offset-top="0" style="z-index: 100; background-color: white;">
            <van-tabs v-model:active="active">
                <van-tab title="社区" to="/home/LiveIndex/Class"></van-tab>
                <van-tab title="资讯" to="/home/LiveIndex/Info"></van-tab>
            </van-tabs>
        </van-sticky>
        <router-view></router-view>
    </div>
</template>

<script setup>
import { createApp } from 'vue'
import { useRouter } from 'vue-router';
import { Tab, Tabs } from 'vant'
const app = createApp();
app.use(Tab);
app.use(Tabs);
const router = useRouter()

</script>

<style lang="scss" scoped></style>